package com.xuecheng.api.cms;

import com.xuecheng.framework.domain.cms.CmsTemplate;
import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
@Api(value = "cms模板 管理接口", description = "cms模板管理接口，增、删、改、查")
public interface CmsTemplateControllerApi  {
    @ApiOperation("查询所有template列表")
    public QueryResponseResult findList();
    @ApiOperation("上传本地html模板")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "path",value = "文件的本地路径",dataType = "java.lang.String"),
            @ApiImplicitParam(name = "cmsTemplate",value = "模板对象",dataType = "com.xuecheng.framework.domain.cms.CmsTemplate")
    })
    public ResponseResult add(String path, CmsTemplate cmsTemplate);

    @ApiOperation("删除模板根据模板id")
    @ApiImplicitParam(name ="templateId",value = "模板id",dataType = "java.lang.String")
    public ResponseResult del( String templateId);
}
